home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ETO Development Tools 2
/
ETO Development Tools 2.iso
/
Tools - Objects
/
MPW C++ 3.1
/
Examples
/
CPlusExamples
/
StreamCounter.h
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
C/C++ Source or Header
|
1990-09-11
|
330 b
|
28 lines
|
[
TEXT/MPS
]
#ifndef TStreamCounter_H
#define TStreamCounter_H
#include <Stream.h>
struct aCount {
long chars;
long lines;
};
class TStreamCounter {
public:
TStreamCounter(fstream* =0);
void Reset(fstream* =0);
void Count();
aCount GetCount() { return fCount; };
private:
fstream* fStream;
aCount fCount;
};
#endif